<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function Validate(form) {
	return true;
}

function setPasswordDisabled() {

	if(!document.getElementById('not_change_pass')) {
		return;
	} 
	
	ch = document.getElementById('not_change_pass');
	p = document.getElementById('password');
	p2 = document.getElementById('password_2');
	
	if(ch.checked == true) {
		p.disabled = true;
		p2.disabled = true;
	} else {
		p.disabled = false;
		p2.disabled = false;
	}
}
//-->
</SCRIPT>


{user_msg}


<form action="{action_link}" method="post" name="" id="" onsubmit="return Validate(this);">
<input type="hidden" name="id" id="id" value="{id}" />
<input type="hidden" name="date_registered" id="date_registered" value="{date_registered}" />


<table>
<tr class="tdSubTitle">
	<td class="tdSubTitle" colspan="2"><b>{title_msg}</b></td>
</tr>
<tr class="trForm">
	<td class="tdFormCaption">{required_sign}  {first_name_msg}:</td>
	<td><input name="first_name" type="text" class="longText" id="first_name" value="{first_name}" /></td>
</tr>
<tr class="trForm">
	<td class="tdFormCaption">{required_sign} {last_name_msg}:</td>
	<td><input name="last_name" id="last_name" type="text" class="longText" value="{last_name}" /></td>
</tr>
<tr class="trForm">
	<td class="tdFormCaption">{middle_name_msg}:</td>
	<td><input name="middle_name" id="middle_name" type="text" class="longText" value="{middle_name}" /></td>
</tr>
<tr class="trForm">
	<td class="tdFormCaption">{required_sign} {email_msg}:</td>
	<td><input name="email" id="email" type="text" value="{email}" class="longText" /></td>
</tr>

<tr class="trForm">
	<td class="tdFormCaption">{phone_msg}:</td>
	<td><input name="phone" id="phone" type="text" value="{phone}" class="longText" /></td>
</tr>

<tr class="trForm">
	<td class="tdFormCaption">{required_sign} {username_msg}:</td>
	<td valign="top"><input name="username" id="username" type="text" value="{username}" class="longText" /></td>
</tr>

<tr class="trForm">
	<td class="tdFormCaption">{required_sign} {password_msg}:</td>
	<td valign="top">
	<input type="password" name="password" id="password" class="longText" />
	<tmpl:update>
	<input type="checkbox" name="not_change_pass" id="not_change_pass" value="1" 
	onchange="setPasswordDisabled();" {pass_change_checked} /> {not_change_pass_msg}
	</tmpl:update>
	</td>
</tr>
<tr class="trForm"> 
	<td class="tdFormCaption">{required_sign} {password_repeat_msg}:</td>
	<td valign="top"><input type="password" name="password_2" id="password_2" class="longText" /></td>
</tr>

<tmpl:captcha>
<tr class="trForm" valign="top">
	<td class="tdFormCaption"></td>
	<td><br /><img src="{captcha_src}" alt="code" /></td>
</tr>

<tr class="trForm" valign="top">
	<td valign="top" class="tdFormCaption">{required_sign} {captcha_msg}:</td>
	<td valign="top">
		<input type="text" name="captcha" id="captcha" value="" class="longText" /> 
		&nbsp;&nbsp;<span class="formComment">{captcha_comment_msg}</span>
	</td>
</tr>
</tmpl:captcha>

<tr> 
	<td>
		<tmpl:update>		
		<div><br /></div>
		<input type="hidden" name="remember" id="remember" value="0" />
		<input type="checkbox" name="remember" id="remember" value="1" {remember_option} /> {remember_msg}
		</tmpl:update>
	</td>
	<td><div><br /></div>
		<input type="submit" name="submit" id="submit" value="{ok_msg}" class="button" />
		<!-- <input type="button" value="{cancel_msg}" onclick="javascript:history.back(1)" class="button" /> -->
		<input type="button" value="{cancel_msg}" onclick="location.href='{cancel_link}'" class="button" />
	</td>
</tr>
</table>
</form>

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
setPasswordDisabled();
//-->
</SCRIPT>

<!-- 
<img src="../client/images/s.gif" width="1" height="1" alt="" onload="setPasswordDisabled()" />
 -->

